<!--
- @founder   IT柏拉图, https: //weibo.com/itprato
- @author    DedeCMS团队
- @copyright Copyright (c) 2007 - 2021, 上海卓卓网络科技有限公司 (DesDev, Inc.)
--->

<html>
<head>
<meta charset="{dede:global.cfg_soft_lang/}" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>软件频道设置</title>
<meta name="copyright" content="2007-2021 DedeCMS, 上海卓卓网络科技有限公司 (DesDev, Inc.)" />
<link rel="icon" href="/favicon.ico" />
<!-- CSS FILES -->
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/pkg/uikit/css/uikit.min.css" />
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/css/manage.dede.css">
<style type="text/css">
.uk-table td{
padding: 6px 12px;
vertical-align: top;
height: 35px;
}
</style>
</head>
<body>
<!-- 列表头部 -->
<div id="Table_Header_202X2W2X1X292F" class="uk-card uk-card-small uk-card-default" uk-sticky="bottom: #offset">
<div id="Header_1W2T2S2T1V252B" class="uk-card-header">
<div class="uk-grid uk-grid-small uk-text-small">
<span><ul class="uk-breadcrumb"><li><span>软件频道设置</span></li></ul></span>
</div>
</div>
</div>
<!-- /列表头部 -->
<!-- 列表主体 -->
<div class="uk-card uk-card-small uk-card-default" style="top:-20px;margin-bottom: 50px;">
<div class="uk-card-body uk-overflow-auto" grid>
<div class="uk-child-width-1-1 uk-padding">
<table width="98%" border="0" cellpadding="1" cellspacing="1" class="uk-table">
<form name="form1" action="soft_config.php" method="post">
<input type="hidden" name="dopost" value="save" />
<tr>
<td width="30%"><strong>软件频道设置：</strong></td>
</tr>
<tr>
<td>链接显示方式：</td>
<td>
<input type="radio" name="downtype" class="uk-radio" value="0"<?php if($row['downtype']==0) echo " checked='checked' ";?>/> 直接显示地址列表 &nbsp;&nbsp;
<input name="downtype" type="radio" value="1" class="uk-radio"<?php if($row['downtype']==1) echo " checked='checked' ";?>/>要求进入下载地址列表页
</td>
</tr>
<tr>
<td>附件下载方式：</td>
<td>
<input type="radio" name="gotojump" class="uk-radio" value="0"<?php if($row['gotojump']==0) echo " checked='checked' ";?>/> 链接到真实软件地址 &nbsp;&nbsp;
<input name="gotojump" type="radio" class="uk-radio" value="1"<?php if($row['gotojump']==1) echo " checked='checked' ";?>/> 链接到跳转页面
</td>
</tr>
<tr>
<td>是否启用镜像站点：</td>
<td>
<input type="radio" name="ismoresite" class="uk-radio" value="1"<?php if($row['ismoresite']==1) echo " checked='checked' ";?>/> 启用 &nbsp;&nbsp;
<input name="ismoresite" type="radio" class="uk-radio" value="0"<?php if($row['ismoresite']==0) echo " checked='checked' ";?>/> 不启用
</td>
</tr>
<tr>
<td>启用镜像站点后是否保留本地下载：</td>
<td>
<input type="radio" name="islocal" class="uk-radio" value="1"<?php if($row['islocal']==1) echo " checked='checked' ";?>/> 保留 &nbsp;&nbsp;
<input name="islocal" type="radio" class="uk-radio" value="0"<?php if($row['islocal']==0) echo " checked='checked' ";?>/> 不保留
</td>
</tr>
<tr>
<td>镜像处理方式：</td>
<td>
<input type="radio" name="moresitedo" class="uk-radio" value="1"<?php if($row['moresitedo']==1) echo " checked='checked' ";?>/> 根据本地地址和服务器列表自动生成 &nbsp;&nbsp;
<input name="moresitedo" type="radio" class="uk-radio" value="0"<?php if($row['moresitedo']==0) echo " checked='checked' ";?>/> 发布时按服务器生成列表由我手工填写
</td>
</tr>
<tr>
<td colspan='2'><b>不管是全局，还是具体某软件设置了下面的参数，附件下载方式都必须链接到中转页，否则无效！</b></td>
</td>
<tr>
<td>下载默认等级：</td>
<td>
<select name="dfrank" id="dfrank" class="uk-select uk-form-small uk-form-width-large">
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("Select * from `#@__arcrank` where `rank`>=0 ");
$dsql->Execute();
while($nrow = $dsql->GetArray())
{
if($nrow['rank']==0) $nrow['membername'] = "开放下载";
if($nrow['rank']==$row['dfrank']) echo " <option value='{$nrow['rank']}' selected>{$nrow['membername']}</option>\r\n";
else echo " <option value='{$nrow['rank']}'>{$nrow['membername']}</option>\r\n";
}
?>
</select>
</td>
</tr>
<tr>
<td>下载默认金币：</td>
<td>
<input type="text" name="dfywboy" class="uk-input uk-form-small uk-form-width-large" value="<?php echo $row['dfywboy']; ?>"/>
</td>
</tr>
<tr>
<td>参数限制方式：</td>
<td>
<input type="radio" name="argrange" class="uk-radio" value="0"<?php if($row['argrange']==0) echo " checked='checked' ";?>/> 允许发布时重新选择权限 &nbsp;&nbsp;
<input type="radio" name="argrange" class="uk-radio" value="2"<?php if($row['argrange']==1) echo " checked='checked' ";?>/> 所有软件均使用此权限
</td>
</tr>
<tr>
<td height="26" colspan="2">
<strong>镜像服务器列表： </strong></td>
</tr>
<tr>
<td colspan="2">
服务器网址： <input class="uk-input uk-form-small uk-form-width-medium" name="serverurl" type="text" id="serverurl" value="http://" /> &nbsp;&nbsp;
服务器名称： <input class="uk-input uk-form-small uk-form-width-medium" name="servername" type="text" id="servername" /> &nbsp;&nbsp;
服务器类型： <input class="uk-input uk-form-small uk-form-width-medium" name="servertype" type="text" id="servertype" value="默认" /> &nbsp;&nbsp;
<button type="button" class="uk-button uk-button-small uk-button-default" onClick="AddServer()">增加服务器</button>
</td>
</tr>
<tr>
<td height="62" colspan="2"><textarea name="sites" id="sites" class="uk-textarea uk-form-small" style="height:150px"><?php echo $row['sites']; ?></textarea></td>
</tr>
<tr>
<td height="26" colspan="2"><strong>下载说明：</strong></td>
</tr>
<tr>
<td height="62" colspan="2"><?php GetEditor('downmsg',$row['downmsg'],250); ?></td>
</tr>
</table>
</div>
</div>
<div class="uk-card-footer " >
<div class="uk-padding-small" >
<button type="submit" class="uk-button uk-button-small uk-button-primary">提交</button>
</div>
</div>
</div>
</form>
<!-- 列表底部 -->
<div class="bar-bottom uk-flex uk-light uk-flex-right">
<div class="uk-button-group" style="margin-left: 50px;">
</div>
<div class="e1e02">Copyright &copy; 2007-2021 <a href='http://www.dedecms.com' target='_blank'><u>DedeCMS</u></a>, 上海卓卓网络科技有限公司 (DesDev, Inc.)</div>
</div>
<!-- 列表底部 -->
<!-- JS FILES -->
<script src="{dede:global.cfg_assets_dir/}/pkg/uikit/js/uikit.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/uikit/js/uikit-icons.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/jquery/jquery.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/js/dede.manage.min.js"></script>
<script language="JavaScript">
function AddServer()
{
if(document.form1.serverurl.value==""||document.form1.serverurl.value=="http://"){ alert('服务器网址不能为空！'); return ;}
if(document.form1.servername.value==""){ alert('服务器名称不能为空！'); return ;}
if(document.form1.servertype.value==""){ alert('服务器类型不能为空！'); return ;}
document.form1.sites.value += document.form1.serverurl.value+" | "+document.form1.servername.value+" | "+document.form1.servertype.value+"\r\n";
}
</script>
<!-- / JS FILES -->
</body>
</html>
